package com.xjscrm.console.mapper;

import com.xjscrm.common.entity.SyncCustomerJob;
import com.xjscrm.console.param.wwCustomer.SyncCustomerQuery;
import com.xjscrm.console.vo.SyncCustomerJobVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SyncCustomerJobMapper {
    int add(SyncCustomerJob syncCustomerJob);

    SyncCustomerJob getByDeviceUniqueId(@Param("deviceUniqueId") Long deviceUniqueId, @Param("merId") Long merId);

    int update(SyncCustomerJob syncCustomerJob);

    List<SyncCustomerJobVo> getSyncCustomerList(SyncCustomerQuery syncCustomerQuery);

    int delById(@Param("id") Long id, @Param("merId") Long merId);

    SyncCustomerJob getUnSyncCustomerTask(Long merId);

    SyncCustomerJob getById(@Param("id") Long id, @Param("merId") Long merId);
}
